package com.jxstyle.modular.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jxstyle.core.base.BaseService;
import com.jxstyle.core.common.page.PageInfo;
import com.jxstyle.modular.entity.Role;
import com.jxstyle.modular.mapper.RoleMapper;

@Service
public class RoleService extends BaseService<RoleMapper, Role>{

	@Autowired
	private RoleMapper roleMapper;
	
	public PageInfo<Role> test(PageInfo<Role> page,String name){
		Map<String,Object> map = new HashMap<>();
		map.put("name", name);
		map.put("page", page);
		List<Role> list = roleMapper.getList(map);
		page.setRecords(list);
		return page;
	}
}
